package system.model;



import java.util.Date;

import com.agile.jfinal.model.CoreModel;
import com.jfinal.ext.plugin.tablebind.TableBind;

/**
* 数据库表对应的Model类，继承了CoreModel
* @author qiutian 
* @date 2013-12-19
*/
@TableBind(tableName="sm_base_data",pkName="pk_base_data") 
public class SmBaseData extends CoreModel<SmBaseData>{

	public static final SmBaseData dao = new SmBaseData();

	public static final String PK_BASE_DATA = "pk_base_data";   //主键
	public static final String VCODE = "vcode";   //编码
	public static final String VNAME = "vname";   //名称
	public static final String COMMENTS = "comments";   //备注
	public static final String PK_PARENT = "pk_parent";   //父主键
	public static final String CREATE_BY = "create_by";   //制单人
	public static final String CREATE_DATE = "create_date";   //制单时间
	public static final String OPERATOR = "operator";   //操作员
	public static final String TS = "ts";   //时间戳
	public static final String DR = "dr";   //删除标记
	public static final String COLUMN_1 = "column_1";   //预留字段1
	public static final String COLUMN_2 = "column_2";   //预留字段2
	public static final String COLUMN_3 = "column_3";   //预留字段3
	public static final String COLUMN_4 = "column_4";   //预留字段4
	public static final String COLUMN_5 = "column_5";   //预留字段5
	public static final String ISLEAF = "isleaf";   //是否末级


	/**数据库中的表名*/
	@Override
	public String getTableName() {
		// TODO Auto-generated method stub
		return "sm_base_data";
	}


	/**主键字段名称*/
	@Override
	public String getPrimaryKey() {
		// TODO Auto-generated method stub
		return PK_BASE_DATA;
	}


}
